/*
* $Id: QBWnd.h 130 2010-08-06 15:19:16Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Alexey Volokitin
* All rights reserved
*
*/
#ifndef _QB_WND_H_
#define _QB_WND_H_

#include "Components/Journal/QueenBeeManager.h"
#include "DialogWnd.h"

class CQBWnd : public CWnd, public CDialogWnd
{
	std::tstring m_strNameFamily;
	CQueenBeeManager::queen_bee m_qb;
protected:
	void PaintInfo(CDC* dc, CRect rect);
	void PaintPieceInfo(CDC* dc, CRect rect, int& nYPos, CFont* pFont1, CFont* pFont2, int value1, const std::tstring& strValue2);
public:
	CQBWnd();
	virtual ~CQBWnd();
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg void OnPaint();
public:
	virtual void WindowCreate(CWnd* pParent);
	virtual	void WindowDestroy();
	virtual void SetQueenBeeId(int nId);
	virtual void Save();
};

#endif/*_QB_WND_H_*/